package client.comm.baoding.dialog

import android.content.Context
import client.comm.baoding.R
import client.comm.baoding.databinding.LayoutAgaintitledialogBinding
import client.tzstore.oo.dialog.CenterDialog

open class AgainEnterPrivacyDialog(context: Context) : CenterDialog<LayoutAgaintitledialogBinding>(context) {

    var title: String = ""
    var okTxt: String = ""
    var leftTxt: String = ""
    var left: (() -> Unit)? = null
    var ok: (() -> Unit)? = null

    fun okClick() {
        ok?.invoke()
        cancel()
    }

    fun leftClick() {
        left?.invoke()

    }

    override fun getV(): Int {
        return R.layout.layout_againtitledialog
    }

    override fun postBinding() {
        binding.event = this
    }

}